Skip to content

CHK-13433: Force io.netty:netty-codec-dns to 4.2.13.Final to address GHSA-cm33-6792-r9fm - #369

Closed
gygrobot with Copilot wants to merge 4 commits into
mainfrom
copilot/chk-13433-fix-dns-codec-input-validation-bypass
Closed

gygrobot with Copilot wants to merge 4 commits into
mainfrom
copilot/chk-13433-fix-dns-codec-input-validation-bypass

Conversation

Copilot AI commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

This PR applies a targeted security remediation for the DNS codec input validation bypass in io.netty:netty-codec-dns (GHSA-cm33-6792-r9fm), tracked in CHK-13433 and GitHub alert #55.
The vulnerable transitive dependency came from the Spring WebFlux path and resolved to 4.2.12.Final.

  • Change

    • Added a dependency resolution constraint in root build.gradle within the existing subprojects -> configurations.configureEach -> resolutionStrategy.eachDependency block.
    • Constraint upgrades only io.netty:netty-codec-dns versions below 4.2.13.Final to 4.2.13.Final.
  • Why this approach (Implementation Reasoning)

    • Uses the project’s existing security-override pattern (same place/mechanism as jackson-core and tomcat-embed-core constraints).
    • Delivers a focused fix for the vulnerable package without broad Spring Boot upgrade risk.
    • Applies uniformly across subprojects via centralized root configuration.
  • Resulting behavior

    • Dependency resolution now forces netty-codec-dns to patched 4.2.13.Final when a vulnerable transitive version is requested.
if (requested.group == 'io.netty' && requested.name == 'netty-codec-dns'
        && requested.version != null && requested.version < '4.2.13.Final') {
    useVersion('4.2.13.Final')
    because('GHSA-cm33-6792-r9fm: Netty netty-codec-dns DNS codec input validation bypass')
}

Please ask @catarina-correia to review.

Original prompt

Requested by: catarina.correia@getyourguide.com

Branch naming: Please prefix your branch with CHK-13433

Jira Ticket: CHK-13433
Security Alert: Github_Security_Alert - DNS Codec Input Validation Bypass

Context:
This is a security vulnerability fix for DNS Codec Input Validation Bypass in io.netty:netty-codec-dns used by the openapi-validation-java library.

Vulnerability Details:

  • CVE/GHSA: GHSA-cm33-6792-r9fm
  • Severity: HIGH
  • Package: io.netty:netty-codec-dns
  • Vulnerable Version/Range: >= 4.2.0.Alpha1, <= 4.2.12.Final
  • Patched Version: 4.2.13.Final

Work Needed:

  • Locate netty-codec-dns in the dependency tree (it's a transitive dependency from Spring Boot's WebFlux starter)
  • Verify current version is in the vulnerable range
  • Add a dependency constraint in the root build.gradle to force netty-codec-dns to version 4.2.13.Final (similar to existing constraints for jackson-core and tomcat-embed-core)
  • Add the constraint inside the existing configurations.configureEach block in allprojects section
  • Verify the patched version appears in the dependency tree after the change
  • Run tests following repository's documented test process (check README.md and use ./gradlew test)

⚠️ PR Description Requirements:

  • ALWAYS include the "Implementation Reasoning" section in the PR description on GitHub

Implementation Reasoning:
Using a dependency constraint in the root build.gradle rather than upgrading Spring Boot because:

  • This provides a targeted fix for the specific vulnerable netty-codec-dns package
  • Follows the existing pattern in this project (jackson-core and tomcat-embed-core constraints)
  • Avoids potential breaking changes from a Spring Boot version upgrade
  • The constraint applies to all subprojects automatically via the allprojects configuration block

This resolves GHSA-cm33-6792-r9fm by forcing netty-codec-dns to 4.2.13.Final, which includes the fix for the DNS Codec Input Validation Bypass vulnerability.

Security Considerations:

  • Ensure netty-codec-dns 4.2.13.Final actually appears in the dependency tree after adding the constraint
  • Verify no breaking changes are introduced (netty 4.2.12 to 4.2.13 is a patch release)
  • Test thoroughly to ensure the vulnerability is closed
  • Confirm the fix by checking GitHub Dependabot alert changed: default sample-rate to 100% #55 is resolved after merge

Acceptance Criteria:

  • Dependency constraint added for io.netty:netty-codec-dns in root build.gradle
  • All existing tests pass (./gradlew test)
  • netty-codec-dns 4.2.13.Final confirmed in dependency tree (./gradlew dependencies)
  • No unexpected breaking changes introduced
  • PR includes links to CHK-13433, GitHub alert changed: default sample-rate to 100% #55, and GHSA-cm33-6792-r9fm

⚠️ Security Fix: This PR addresses a HIGH severity DNS Codec Input Validation Bypass vulnerability. Please review carefully.

Ask @catarina-correia for a review.

@gyg-dev-cluster-tool gyg-dev-cluster-tool Bot changed the title [WIP] Fix DNS Codec input validation bypass vulnerability CHK-13433: [WIP] Fix DNS Codec input validation bypass vulnerability May 22, 2026
@gygrobot
gygrobot requested a review from catarina-correia May 22, 2026 14:15
Copilot AI and others added 3 commits May 22, 2026 14:16
…int"

This reverts commit 6995acc.

Co-authored-by: gygrobot <19344429+gygrobot@users.noreply.github.com>
Copilot AI changed the title CHK-13433: [WIP] Fix DNS Codec input validation bypass vulnerability CHK-13433: Force io.netty:netty-codec-dns to 4.2.13.Final to address GHSA-cm33-6792-r9fm May 22, 2026
Copilot AI requested a review from gygrobot May 22, 2026 14:25
@catarina-correia
catarina-correia deleted the copilot/chk-13433-fix-dns-codec-input-validation-bypass branch May 22, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants